{% extends "layout.html" %} {% block body %} {% if error %}
<p class=error><strong>Error:</strong> {{ error }}{% endif %}

	<div class="col-md-8 col-md-offset-2">
		<div class="panel panel-default">
			<div class="panel-heading ">用户登录</div>
			<div class="panel-body">
				<form class="form-horizontal" role="form" method="POST" action="{{ url_for('login') }}">
					<input type="hidden" name="_token" value="Y1tC4xbmPAWQLFshhIIHVPdHo1xOSM7TWkXSxGHE">

					<div class="form-group">
						<label class="col-md-4 control-label">昵称</label>

						<div class="col-md-6">
							<input type="text" class="form-control" name="username" value="">

						</div>
					</div>

					<div class="form-group">
						<label class="col-md-4 control-label">密码</label>

						<div class="col-md-6">
							<input type="password" class="form-control" name="password">

						</div>
					</div>

					<div class="form-group">
						<div class="col-md-6 col-md-offset-4">
							<button type="submit" class="btn btn-primary">
                                    <i class="fa fa-btn fa-sign-in"></i>登录
                                </button>

							<a class="btn btn-link" href="https://www.baidu.com">还没有账号，去注册</a>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>

	{% endblock %}